<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Library extends MX_Controller {

    function __construct(){
        parent::__construct();  
        $this->load->model('library/library_model');      
    }    
   
    function load_district_of_city(){
        $city = $this->input->post('city');
        if($city){
            $list_district = $this->library_model->get_district_by_city( $city ); 
            echo json_encode( $list_district );
            return ;
        }
        echo json_encode( NULL );
        return ;
    }
/* ================================================

    END CLASS
    
    
=================================================== */
}